a=input()
b=list(a)
c=[]
for i in a:
    if i not in c:
        c.append(i)
d={}
for i in c:
    d[i]=a.count(i)
print(d)
